package com.ayf.payment.game.api.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 商户支付宝信息表
 */
@Data
@Table(name = "g_merchant_alipay_config")
public class MerchantAlipayConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    private Integer id;

    /**
     * 商户号
     */
    @Column(name = "merchant_id")
    private Integer merchantId;

    /**
     * appid
     */
    @Column(name = "app_id")
    private String appId;

    /**
     * 商户UID
     */
    @Column(name = "alipay_user_id")
    private String alipayUserId;

    /**
     * 私钥
     */
    @Column(name = "private_key")
    private String privateKey;

    /**
     * 根证书上传名称
     */
    @Column(name = "root_cert_name")
    private String rootCertName;

    /**
     * 根证书base64
     */
    @Column(name = "root_cert_base64")
    private String rootCertBase64;

    /**
     * 公共书上传名称
     */
    @Column(name = "public_cert_name")
    private String publicCertName;

    /**
     * 公共书base64
     */
    @Column(name = "public_cert_base64")
    private String publicCertBase64;

    /**
     * 支付宝代付公共书上传名称
     */
    @Column(name = "alipay_public_cert_name")
    private String alipayPublicCertName;

    /**
     * 支付宝代付公共书base64
     */
    @Column(name = "alipay_public_cert_base64")
    private String alipayPublicCertBase64;

    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark;

    /**
     * 0禁用 1启用
     */
    @Column(name = "`status`")
    private Integer status;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 最后更新时间
     */
    @Column(name = "last_update_time")
    private Date lastUpdateTime;

    /**
     * 是否自己企业支付宝 1是 0否
     */
    @Column(name = "`self_flag`")
    private Integer selfFlag;


}